package org.ilead.iserve.dao;

import java.util.List;

import org.ilead.iserve.model.Area;

public interface IAreaDAO {
	
	//property constants
	public static final String CODE = "code";
	public static final String NAME = "name";
	
	public abstract void save(Area transientInstance);

	public abstract void delete(Area persistentInstance);

	public abstract Area findById(java.lang.Integer id);

	public abstract List findByExample(Area instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByCode(Object code);

	public abstract List findAll();

	public abstract Area merge(Area detachedInstance);

	public abstract void attachDirty(Area instance);

	public abstract void attachClean(Area instance);
}
